package com.kyxx.mycommonproject.lunbotu.presenter;
import com.kyxx.mycommonproject.lunbotu.model.CarouselfigureModel;
import com.kyxx.mycommonproject.lunbotu.model.bean.CarouselfigureBean;
import com.kyxx.mycommonproject.lunbotu.model.callBack.CarouselfigureListener;
import com.kyxx.mycommonproject.lunbotu.view.ICarouselfigureView;

/**
 * Created by Administrator on 2016/9/8.
 */
public class CarouselfigurePresenter implements CarouselfigureListener{
    private ICarouselfigureView view;
    private CarouselfigureModel model;
    public CarouselfigurePresenter(ICarouselfigureView view){
        this.view = view;
        this.model = new CarouselfigureModel();
    }
    public void init(){
        model.request("",this);
    }

    @Override
    public void onSuccess(CarouselfigureBean bean) {
        view.initData(bean);
    }

    @Override
    public void onFailed() {

    }

    @Override
    public void onStart() {

    }

    @Override
    public void onFinish() {

    }
}
